package com.gusha.dao;

import java.math.BigInteger;
import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import com.gusha.model.SysTraining;
import com.gusha.model.TrainComm;

@Repository
public interface TrainCommDao extends JpaRepository<TrainComm,BigInteger>,JpaSpecificationExecutor<TrainComm> {
	@Query(value="select tr from TrainComm tr where tr.sysTraining=?1")
	List<TrainComm> findAllBySysTraining(SysTraining sysTraining);

}
